package main

import (
        "dlib/gio-2.0"
        "fmt"
)

const (
        MEDIA_SCHEMA_ID = "com.deepin.dde.key-binding.mediakey"
)

func testMediaKey() {
        mediaSettings := gio.NewSettings(MEDIA_SCHEMA_ID)
        keyList := mediaSettings.ListKeys()
        for _, key := range keyList {
                value := mediaSettings.GetString(key)
                fmt.Printf("Key; %s\tValue: %s\n", key, value)
        }
        mediaSettings.Unref()
}

func main() {
        testMediaKey()
}
